window.onload = function(){	

};
function $(id){
	return document.getElementById(id);
}
function delCookie(name) {
    var exp = new Date();
    exp.setTime(exp.getTime() - 1);
    var cval = getCookie(name);
    if (cval != null)
        document.cookie=name+"="+cval+";expires="+exp.toGMTString()+"; path=/";
}
function getCookie(name){
    var strcookie = document.cookie;
    var arrcookie = strcookie.split(";");
    for ( var i = 0; i < arrcookie.length; i++) {
        var arr = arrcookie[i].split("=");
        if (arr[0] == name){
            return arr[1];
        }
    }
    return null;
}